import { Controller, Get } from '@nestjs/common';
import { MicroUserService } from './micro-user.service';
import {
  UserListRequest,
  UserListResponse,
  UserServiceController,
  UserServiceControllerMethods,
} from '@libs/common/protos/user/user';
import { Observable } from 'rxjs';
@UserServiceControllerMethods()
@Controller()
export class MicroUserController implements UserServiceController{
  constructor(private readonly microUserService: MicroUserService) {}

  getUserList(request: UserListRequest): Promise<UserListResponse> | Observable<UserListResponse> | UserListResponse {
    return this.microUserService.getUserList(request);
  }
}
